/*
 * COPYRIGHT. ShenZhen JiMi Technology Co., Ltd. 2017.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen JiMi Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * 2017年12月15日    LongMin         Create the class
 * http://www.jimilab.com/
*/
package com.futuremap.ws.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @FileName ApiController.java
 * @Description: api服务
 *
 * @Date 2017年12月15日 下午4:08:12
 * @author LongMin
 * @version 1.0
 */
@Controller
@RequestMapping(value = "/doc")
public class DocController extends AbsController {
	
	//private static final Logger LOGGER = LoggerFactory.getLogger(DocController.class);

	/**
	 * @Title: html
	 * @Description: 统一页面
	 * @param html
	 *            页面路径
	 * @return
	 * @author LongMin
	 * @date 2017年12月26日 下午6:45:18
	 */
	@RequestMapping("*.html")
	public String html(HttpServletRequest request) {
		String uri = request.getRequestURI();
		return uri.substring(request.getContextPath().length(), uri.length() - 5 /* .html长度为5 */);
	}
}
